package com.mszlu.news.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mszlu.news.admin.pojo.Article;
import com.mszlu.news.admin.vo.ArticleVo;
import com.mszlu.news.admin.vo.TagVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleMapper extends BaseMapper<Article> {
    IPage<ArticleVo> selectArticle(Page<ArticleVo> page, Long id, String summary, String title, String account, String content, String categoryName, List<TagVo> tags);

    List<TagVo> findTagsByArticleId(Long id);
}
